package com.qf.day11;

import java.math.BigDecimal;
import java.math.RoundingMode;

public class BigDecimalDemo {
    public static void main(String[] args) {
        //String.valueOf()
        //val写""
        BigDecimal bd1=new BigDecimal("0.8");
        BigDecimal bd2=new BigDecimal("1.5");
        BigDecimal divide = bd2.divide(bd1,2, RoundingMode.HALF_UP);
        System.out.println(divide);
    }
}
